const express = require('express');
const router = express.Router();
const { verifyToken } = require('../utils/jwt')
const docShcContorller = require('../contorller/docSchContorller')
//获取不同科室下的医生排班信息
router
.post('/getDoctorWithDept',verifyToken(),docShcContorller.getDoctorsWithDepartAndJob)
//给医生添加排班
.post('/addDoctorSch',verifyToken(),docShcContorller.addDoctorSch)
//获取医生排班信息
.get('/getDoctorSch',verifyToken(),docShcContorller.getDoctorSch)
//修改医生排班信息
.put('/updateDoctorSch',verifyToken(),docShcContorller.updateDoctorSch)
//获取排班的详情
.get('/getDoctorSchDetail',verifyToken(),docShcContorller.getDoctorSchDetail)
//获取对应科室的所有排班
.get('/getDoctorSchWithDept',verifyToken(),docShcContorller.getDoctorSchWithDept)
module.exports = router;